package edu.yuhf.tts.domain;

import java.math.BigDecimal;
import java.sql.Time;
import java.time.LocalDate;
import java.time.LocalTime;
import java.util.Date;

public class Train {
	//车次信息
	//id、车号（trainId）、出发地（to）、目的地（from）、发车日期（date）、开车时刻（time）、票价（fares）
		int id;
		String trainId;
		String fromAddress;
		String toAddress;
		LocalDate date;
		LocalTime time;
		BigDecimal fares;
		
		public Train(){}
		public Train(int id, String trainId, String fromAddress, String toAddress, LocalDate date, LocalTime time,
				BigDecimal fares) {
			super();
			this.id = id;
			this.trainId = trainId;
			this.fromAddress = fromAddress;
			this.toAddress = toAddress;
			this.date = date;
			this.time = time;
			this.fares = fares;
		}
		public int getId() {
			return id;
		}
		public void setId(int id) {
			this.id = id;
		}
		public String getTrainId() {
			return trainId;
		}
		public void setTrainId(String trainId) {
			this.trainId = trainId;
		}
		public String getFromAddress() {
			return fromAddress;
		}
		public void setFromAddress(String fromAddress) {
			this.fromAddress = fromAddress;
		}
		public String getToAddress() {
			return toAddress;
		}
		public void setToAddress(String toAddress) {
			this.toAddress = toAddress;
		}
		public LocalDate getDate() {
			return date;
		}
		public void setDate(LocalDate date) {
			this.date = date;
		}
		public LocalTime getTime() {
			return time;
		}
		public void setTime(LocalTime time) {
			this.time = time;
		}
		public BigDecimal getFares() {
			return fares;
		}
		public void setFares(BigDecimal fares) {
			this.fares = fares;
		}

	
		
}
